package com.dstz.bpm.engine.parser.flow;

import com.dstz.bpm.api.engine.plugin.def.BpmDef;
import com.dstz.bpm.api.model.def.NodeInit;
import com.dstz.bpm.engine.model.DefaultBpmProcessDef;
import java.util.List;
import org.springframework.stereotype.Component;

@Component
public class FlowFormInitParse extends AbsFlowParse<NodeInit> {
   @Override
   public String getKey() {
      return "nodeInitList";
   }

   @Override
   public void setDefParam(DefaultBpmProcessDef bpmProcessDef, Object object) {
      List<NodeInit> list = (List)object;
      bpmProcessDef.setNodeInitList(list);
   }

   @Override
   public boolean isArray() {
      return true;
   }
}
